<script setup>
import {useRoute,useRouter} from 'vue-router'

//导入 pinia
import {useUserStore} from '@/stores'
const userStore=useUserStore()

//导入中文包
import zhCn from "element-plus/dist/locale/zh-cn"

//Vue3 中 获取路由对象 router
const router=useRouter()
//获取路由参数 route
const route =useRoute()

const goList=()=>{
  console.log(router,route)
  router.push('list')
}
</script>

<template>
 <div>
 <el-config-provider :locale="zhCn"> <router-view></router-view></el-config-provider>
 </div>
</template>

<style scoped>
</style>
